package com.xuhuan.example.example031;

/**
 * @author: huan.xu
 * @create: 2023/11/13 16:13
 * @description:
 **/
public class Example031 {

    public static void main(String[] args) {
        int array[] = {55, 68, 31, 9, 4};
        Integer num = null;
        for (int i : array) {
            if (num == null) {
                num = i;
            } else if (i < num) {
                num = i;
            }
        }
        System.out.println("最小值：" + num);
    }
}
